package cn.qlu.yhy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class AjaxForwardController{

    @RequestMapping(value = "userHome", method = RequestMethod.GET)
    public String toShowAllAjax() {
        return "user/user_home";
    }

    @RequestMapping(value = "userInfo", method = RequestMethod.GET)
    public String toShowUserInfo() {
        return "user/user_info";
    }

    @RequestMapping(value = "shareBook", method = RequestMethod.GET)
    public String toShowShareBook() {
        return "userbook/share_book";
    }

    @RequestMapping(value = "myborrow", method = RequestMethod.GET)
    public String toShowMyBorrowBook() {
        return "userbook/myborrow_book";
    }

    @RequestMapping(value = "userMessage", method = RequestMethod.GET)
    public String toShowUserMessage() {
        return "user/user_message";
    }

    @RequestMapping(value = "communityBook", method = RequestMethod.GET)
    public String toShowCommunityBook() {
        return "userbook/community_book";
    }

    @RequestMapping(value = "pricateBook", method = RequestMethod.GET)
    public String toShowPrivateBook() {
        return "userbook/pricate_book";
    }

    @RequestMapping(value = "searchBook", method = RequestMethod.GET)
    public String toShowSearchBook() {
        return "userbook/Search_book";
    }
}
